<?php

namespace App\Kuafu\Order\Enum;

class OrderInfoEnum
{
    public const ORDER_DETAIL_DEFAULT_FIELD = [
        'num',
        'packageUnitNum',
        'id',
        'productId',
        'orderId',
        'originalPrice',
        'productName',
        'unit',
        'payPrice',
        'discountType',
        'discountNum',
        'discountPrice',
        'freeNum',
        'refundNum',
        'categoryId',
        'type',
        'packageDetailId',
        'remark'
    ];

    public const ORDER_DEFAULT_FIELD = [
        'shopId',
        'userId',
        'orderId',
        'serialNum',
        'originalPrice',
        'realDiscountPrice',
        'realPayPrice',
        'shouldPrice',
        'discountPrice',
        'payPrice',
        'orderStatus',
        'refundStatus',
        'isSelfDelivery',
        'deliveryType',
        'distributionAmount',
        'distributionPer',
        'distributionId',
        'remark',
        'refundMoney',
        'completeTime',
        'createdBy',
        'payChannel',
        'sourceType',
        'payStatus',
        'updatedBy',
        'invoiceStatus',
        'invoiceCanCancelCount',
        'createdAt'
    ];

    public const ORDER_COUPON_EXT_DEFAULT_FIELD = [
        'id',
        'orderId',
        'extPlatform',
        'couponExtName',
        'couponExtSid',
        'couponExtDiscountPrice',
        'couponExtStatus',
        'couponExtCode',
        'couponExtCodeData',
        'couponExtCostPrice',
        'couponExtType',
        'createdAt'
    ];

    public const ORDER_DEFAULT_DISCOUNT_FIELD = [
        'orderId',
        'discountType',
        'discountPrice',
        'discountNum'
    ];

    public const ORDER_COUPON_DEFAULT_FIELD = [
        'id',
        'orderId',
        'couponName',
        'couponDiscountPrice',
        'couponNum',
        'couponCostPrice',
        'createdAt',
        'couponType',
        'couponId',
        'customerCouponId'
    ];

    public const ORDER_CUSTOMER_DEFAULT_FIELD = [
        'id',
        'name',
        'mobile'
    ];

    public const POS_ORDER_PAYMENT_PAY_IN = 1;  // 入账
    public const POS_ORDER_PAYMENT_REFUND = 2;  // 退款

    // 针对 pos 右侧支付列表 返回数据的格式
    public const POS_ORDER_PAYMENT_COUPON         = 1; // 系统自己的优惠券
    public const POS_ORDER_PAYMENT_COUPON_MEITUAN = 2; // 美团优惠券
    public const POS_ORDER_PAYMENT_COMMON_PAY     = 3; // 非自定义支付[支付宝/微信等]
    public const POS_ORDER_PAYMENT_CUSTOM_PAY     = 4; // 自定义支付
    public const POS_ORDER_PAYMENT_COUPON_DOUYIN  = 5; // 抖音优惠券
    public const POS_ORDER_PAYMENT_COUPON_XHS     = 6; // 小红书优惠券
}
